package com.imooc.mall.model;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.imooc.mall.model.dao")
@EnableSwagger2          //开启swagger能力
@EnableCaching           //告诉spring需要打开缓存功能
public class MymallImoocApplication {

    public static void main(String[] args) {
        Logger logger= LoggerFactory.getLogger(MymallImoocApplication.class);
        SpringApplication.run(MymallImoocApplication.class, args);
        logger.info("启动成功");
    }

}
